package org.rcy.ruicingmarket.config;





import org.rcy.ruicingmarket.interceptor.RequestFromGateWayInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
public class ApplicationConfig extends WebMvcConfigurationSupport {

    @Override
    protected void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new RequestFromGateWayInterceptor()).
                addPathPatterns("/**");
    }
}
